package com.ruoyi.qymlxin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qymlxin.mapper.IAddressMapper;
import com.ruoyi.qymlxin.domain.IAddress;
import com.ruoyi.qymlxin.service.IIAddressService;

/**
 * 收货地址Service业务层处理
 * 
 * @author qymlxin
 * @date 2022-05-03
 */
@Service
public class IAddressServiceImpl implements IIAddressService 
{
    @Autowired
    private IAddressMapper iAddressMapper;

    /**
     * 查询收货地址
     * 
     * @param id 收货地址主键
     * @return 收货地址
     */
    @Override
    public IAddress selectIAddressById(Long id)
    {
        return iAddressMapper.selectIAddressById(id);
    }

    /**
     * 查询收货地址列表
     * 
     * @param iAddress 收货地址
     * @return 收货地址
     */
    @Override
    public List<IAddress> selectIAddressList(IAddress iAddress)
    {
        return iAddressMapper.selectIAddressList(iAddress);
    }

    /**
     * 新增收货地址
     * 
     * @param iAddress 收货地址
     * @return 结果
     */
    @Override
    public int insertIAddress(IAddress iAddress)
    {
        return iAddressMapper.insertIAddress(iAddress);
    }

    /**
     * 修改收货地址
     * 
     * @param iAddress 收货地址
     * @return 结果
     */
    @Override
    public int updateIAddress(IAddress iAddress)
    {
        return iAddressMapper.updateIAddress(iAddress);
    }

    /**
     * 批量删除收货地址
     * 
     * @param ids 需要删除的收货地址主键
     * @return 结果
     */
    @Override
    public int deleteIAddressByIds(Long[] ids)
    {
        return iAddressMapper.deleteIAddressByIds(ids);
    }

    /**
     * 删除收货地址信息
     * 
     * @param id 收货地址主键
     * @return 结果
     */
    @Override
    public int deleteIAddressById(Long id)
    {
        return iAddressMapper.deleteIAddressById(id);
    }
}
